home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- startBuffering()
- puppetAll()
- hideAllActors()
- puppetTransition(51, 1)
- set channel to the clickOn
- set awardBmap to the castNum of sprite channel
- set whichRibbon to the name of cast awardBmap
- set staticRibbon to the number of cast "ribbonStatic"
- if whichRibbon = "VTLribbon" then
- puppetSound("award1")
- set celList to [1, 2, 3, 4, 5, 4, 3, 2, 1]
- else
- if whichRibbon = "HHribbon" then
- puppetSound("award2")
- set celList to [1, 2, 3, 3, 3, 4, 5, 6, 6, 6, 4]
- else
- if whichRibbon = "3Dribbon" then
- puppetSound("award3")
- set celList to [1, 2, 3, 3, 3, 1, 2, 3, 3, 3, 4, 5]
- else
- if whichRibbon = "MASribbon" then
- puppetSound("award4")
- set celList to [1, 2, 3, 2, 3, 2, 3, 2, 3, 1]
- end if
- end if
- end if
- end if
- set the castNum of sprite the clickOn to staticRibbon
- updateStage()
- set soundOn to 1
- repeat while soundOn
- repeat with cel in celList
- set the castNum of sprite channel to awardBmap + cel
- updateStage()
- startTimer()
- repeat while the timer < 4
- end repeat
- end repeat
- if not soundBusy(1) then
- set soundOn to 0
- end if
- end repeat
- set the castNum of sprite the clickOn to staticRibbon
- updateStage()
- set the castNum of sprite the clickOn to awardBmap
- puppetTransition(51, 1)
- updateStage()
- puppetSound(0)
- showAllActors()
- flushBuffer()
- end
-